package com.lijiaxing.service.impl;

import com.lijiaxing.mapper.authMapper;
import com.lijiaxing.pojo.UserRes;
import com.lijiaxing.service.authService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class authServiceImpl implements authService {
    @Autowired
    private authMapper am;

    @Override
    public UserRes queryAdminList(int pageNum, int pageSize) {
        pageNum = (pageNum - 1) * 10;
        return new UserRes(am.queryAdminListCount(), am.queryAdminList(pageNum, pageSize));
    }
}
